//
//  ZYTabBar.h
//  YaYa
//
//  Created by 张亚 on 2019/1/8.
//  Copyright © 2019年 张亚. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZYTabBar;

typedef NS_OPTIONS(NSUInteger, ZYTabBarItemType) {
    ZYTabBarItemTypeLaunch = 10,
    ZYTabBarItemTypeLive = 100,
    ZYTabBarItemTypeMe, //我的
    
};

typedef void(^TabBarBlock)(ZYTabBar *tabBar,ZYTabBarItemType idx);

@protocol ZYTabBarDelegate <NSObject>

- (void)tabbar:(ZYTabBar *)tabbar clickButton:(ZYTabBarItemType)idx;

@end

NS_ASSUME_NONNULL_BEGIN

@interface ZYTabBar : UIView

@property (nonatomic, weak) id<ZYTabBarDelegate>delegate;
@property (nonatomic, copy) TabBarBlock block;

@end

NS_ASSUME_NONNULL_END
